package com.black.common.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author linwenfeng
 */
@Data
@ApiModel(value = "菜单信息")
public class MenuVo {
    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;
    /**菜单名称**/
    @ApiModelProperty(value = "菜单名称")
    private String name;
    /**标题**/
    @ApiModelProperty(value = "标题")
    private String title;
    /**图标**/
    @ApiModelProperty(value = "图标")
    private String icon;
    /**菜单地址**/
    @ApiModelProperty(value = "菜单地址")
    private String path;
    /**父级ID**/
    @JsonIgnore
    private Long parentId;
    @ApiModelProperty(value = "序号")
    private int index;
    private String systemCode;
    @ApiModelProperty(value = "子菜单")
    private List<MenuVo> children;
}
